package com.echo.code.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by baiyp on 2019/05/15.
 */
public class SpringApp {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        applicationContext.register(SpringConfig.class);
        applicationContext.refresh();
        Log4jExample log4j = applicationContext.getBean(Log4jExample.class);
        log4j.printLog("echo");
    }
}
